!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&"object"==typeof module.exports?module.exports=t(require("jquery")):t(jQuery)}(function(d){var i,c=[],r=!1,s="ontouchstart"in window,a=!1;window.requestAnimationFrame,window.cancelAnimationFrame;function m(t){var e=".hqmenu_mouse";if(a||t)a&&t&&(d(document).unbind(e),a=!1);else{var n=!0,o=null;d(document).bind(v([["mousemove",function(t){var e={x:t.pageX,y:t.pageY,timeStamp:(new Date).getTime()};if(o){var i=Math.abs(o.x-e.x),s=Math.abs(o.y-e.y);if((0'+i.opts.labelPageActive+""):e.append(''+i.opts.labelPageActive+"")))}),r.splice(-1,1)}t||d("header#hq-main-header").next().prepend('
')},destroy:function(t){if(!t){var e=".hqmenu";this.$root.removeData("hqmenu").removeAttr("data-hqmenu-id").removeDataSM("level").unbind(e).undelegate(e),e+=this.rootId,d(document).unbind(e),d(window).unbind(e),this.opts.subIndicators&&(this.$subArrow=null)}this.menuHideAll();var i=this;this.$root.find("ul").each(function(){var t=d(this);t.dataSM("scroll-arrows")&&t.dataSM("scroll-arrows").remove(),t.dataSM("shown-before")&&((i.opts.subMenusMinWidth||i.opts.subMenusMaxWidth)&&t.css({width:"",minWidth:"",maxWidth:""}).removeClass("sm-nowrap"),t.dataSM("scroll-arrows")&&t.dataSM("scroll-arrows").remove(),t.css({zIndex:"",top:"",left:"",marginLeft:"",marginTop:"",display:""})),0==(t.attr("id")||"").indexOf(i.accessIdPrefix)&&t.removeAttr("id")}).removeDataSM("in-mega").removeDataSM("shown-before").removeDataSM("ie-shim").removeDataSM("scroll-arrows").removeDataSM("parent-a").removeDataSM("level").removeDataSM("beforefirstshowfired").removeAttr("role").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeAttr("aria-expanded"),this.$root.find("a.has-submenu").each(function(){var t=d(this);0==t.attr("id").indexOf(i.accessIdPrefix)&&t.removeAttr("id")}).removeClass("has-submenu").removeDataSM("sub").removeAttr("aria-haspopup").removeAttr("aria-controls").removeAttr("aria-expanded").closest("li").removeDataSM("sub"),this.opts.markCurrentItem&&this.$root.find("a.current").removeClass("current"),t||(this.$root=null,this.$firstLink=null,this.$firstSub=null,this.$disableOverlay&&(this.$disableOverlay.remove(),this.$disableOverlay=null),c.splice(d.inArray(this,c),1))},docClick:function(t){this.$touchScrollingSub?this.$touchScrollingSub=null:(this.visibleSubMenus.length&&!d.contains(this.$root[0],t.target)||d(t.target).is("a"))&&this.menuHideAll()},docTouchEnd:function(t){if(this.lastTouch){if(this.visibleSubMenus.length&&(void 0===this.lastTouch.x2||this.lastTouch.x1==this.lastTouch.x2)&&(void 0===this.lastTouch.y2||this.lastTouch.y1==this.lastTouch.y2)&&(!this.lastTouch.target||!d.contains(this.$root[0],this.lastTouch.target))){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0);var e=this;this.hideTimeout=setTimeout(function(){e.menuHideAll()},350)}this.lastTouch=null}},docTouchMove:function(t){if(this.lastTouch){var e=t.originalEvent.touches[0];this.lastTouch.x2=e.pageX,this.lastTouch.y2=e.pageY}},docTouchStart:function(t){var e=t.originalEvent.touches[0];this.lastTouch={x1:e.pageX,y1:e.pageY,target:e.target}},getStartZIndex:function(t){var e=parseInt(this[t?"$root":"$firstSub"].css("z-index"));return!t&&isNaN(e)&&(e=parseInt(this.$root.css("z-index"))),isNaN(e)?1e3:e},getTouchPoint:function(t){return t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0]||t},handleEvents:function(){return!this.disabled},handleItemEvents:function(t){return this.handleEvents()},isCollapsible:function(){return!1},isTouchMode:function(){return!r||this.opts.noMouseOver},wait:(i=0,function(t,e){clearTimeout(i),i=setTimeout(t,e)}),menuEqualHeight:function(t,e){t.css("height","auto");var i=0;t.each(function(){d(this).height()>i&&(i=d(this).height()-1)}),e?d(t).css("height",i).children(e).css("height",i):t.css("height",i)},itemActivate:function(t,e){var i=t.closest("div"),s=i.dataSM("level");if(1").addClass("btn-sm").wrapInner(d("").addClass("visuallyhidden").html(o)).bind(v([["click",d.proxy(this.itemSimulateClick,this)],["focus",d.proxy(this.itemFocus,this)],["blur",d.proxy(this.itemBlur,this)]],".hqmenu")).attr({id:a,"aria-haspopup":"true","aria-controls":n,"aria-expanded":"false"});s.append(r),t.attr("id","hq-panneau-"+this.idInc)},menuShow:function(t){if((t.dataSM("beforefirstshowfired")||(t.dataSM("beforefirstshowfired",!0),!1!==this.$root.triggerHandler("beforefirstshow.smapi",t[0])))&&!1!==this.$root.triggerHandler("beforeshow.smapi",t[0])){if(t.dataSM("shown-before",!0).stop(!0,!0),!t.is(":visible")){var e=t.dataSM("parent-a");this.opts.keepHighlighted&&e.addClass("hq-active"),t.css("z-index",this.zIndexInc=this.zIndexInc+1||this.getStartZIndex()+1);function i(){}this.opts.showFunction?this.opts.showFunction.call(this,t,i):(t.show(0,i),2<=t.dataSM("level")&&(t.children().addClass("slidein-panneau"),t.children().removeClass("slideout-panneau"),this.menuEqualHeight(d(".hq-menu-col"))),4===t.dataSM("level")&&d('div[id*="hq-panneau-"]').addClass("width-panneau2-3")),e.next().attr("aria-expanded","true"),t.children().attr({"aria-expanded":"true","aria-hidden":"false"}),this.visibleSubMenus.push(t),this.$root.triggerHandler("show.smapi",t[0])}d("#site-overlay").css("z-index","5000").removeClass("hq-mask-out").addClass("hq-mask-in")}},refresh:function(){this.destroy(!0),this.init(!0)},rootKeyDown:function(t){},rootOut:function(t){if(this.handleEvents()&&!this.isTouchMode()&&t.target!=this.$root[0]&&(this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0),!this.opts.showOnClick||!this.opts.hideOnClick)){var e=this;this.hideTimeout=setTimeout(function(){e.menuHideAll()},this.opts.hideTimeout)}},rootOver:function(t){if(this.handleEvents()&&!this.isTouchMode()&&t.target!=this.$root[0]){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=0)}}}}),d.fn.dataSM=function(t,e){return e?this.data(t+"_hqmenu",e):this.data(t+"_hqmenu")},d.fn.removeDataSM=function(t){return this.removeData(t+"_hqmenu")},d.fn.hqmenu=function(t){if("string"==typeof t){var e=arguments,i=t;return Array.prototype.shift.call(e),this.each(function(){var t=d(this).data("hqmenu");t&&t[i]&&t[i].apply(t,e)})}var s=d.extend({},d.fn.hqmenu.defaults,t);return this.each(function(){new d.HqMenu(this,s)})},d.fn.hqmenu.defaults={showTimeout:125,hideTimeout:125,maskDuration:250,showDuration:250,showFunction:null,hideDuration:150,hideFunction:null,showOnClick:!1,hideOnClick:!0,noMouseOver:!1,keepHighlighted:!0,markCurrentItem:!0,markCurrentTree:!0,labelDisplayMenu:"fr"===d("html").attr("lang")?"Afficher le sous-menu":"Display the submenu",labelDefaultThirdMenu:"fr"===d("html").attr("lang")?"Pour en savoir plus":"For more information",labelPageActive:"fr"===d("html").attr("lang")?"Page active":"Active page",labelSectionActive:"fr"===d("html").attr("lang")?"Section active":"Active section"},d});